var namedialog = document.getElementById("namedialog")
function renameAc(){
	namedialog.style.display = "block"
}
function cancelnamedialog(){ // 取消修改姓名
	namedialog.style.display = "none"
}
function renamedialog(){ // 确认修改姓名
	var rename = document.forms["userMsg"]["name"].value;
	if(rename=='' || rename.length>4) {
	  alert("姓名格式不正确，请重新输入")
	  // this.$refs.userMsgName.focus()
	} else {
		namedialog.style.display = "none"
		 document.getElementById('nameMsg').innerText = rename
	}
	
}
var sexdialog = document.getElementById("sexdialog")
function resexAc(){ // 点击修改性别
	sexdialog.style.display = "block"
}
function changesex(e){
	if(e==1){
		alert('1')
		sexdialog.style.display = "none"
	}else if(e==2){
		alert('2')
		sexdialog.style.display = "none"
	} else{
		sexdialog.style.display = "none"
	}
}
function loginOut(){// 退出登录
	alert('退出登录')
	window.location.href='index.html'
}
